import { ITable } from '@/base-ui/table/types'

export const contentConfig: ITable = {
  headerTxt: '菜单列表',
  showIndexColum: false,
  showPagination: false,
  tablePropList: [
    {
      prop: 'name',
      label: '菜单名称',
      minWidth: '150',
      slotName: 'menuName'
    },
    {
      prop: 'type',
      label: '类型',
      minWidth: '60',
      slotName: 'status'
    },

    {
      prop: 'url',
      label: '菜单路径',
      minWidth: '100',
      slotName: 'url'
    },
    {
      prop: 'icon',
      label: '图标',
      minWidth: '100',
      slotName: 'icon'
    },
    {
      prop: 'permission',
      label: '按钮权限',
      minWidth: '100',
      slotName: 'permission'
    },
    {
      prop: 'createAt',
      label: '创建时间',
      minWidth: '200',
      slotName: 'createAt'
    },
    {
      prop: 'updateAt',
      label: '更新时间',
      minWidth: '200',
      slotName: 'updateAt'
    },

    {
      showPosition: 'right',
      label: '操作',
      minWidth: '170',
      slotName: 'operate'
    }
  ],
  childrenProps: {
    rowKey: 'id',
    treeProps: {
      children: 'children'
    }
  }
}
